package com.baosight.risk.service.ridc.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

import com.baosight.risk.base.entity.BaseEntity;
import lombok.Data;

/**
 * Table: T_RIDC_RISK
 */
@Data
@Table(name = "T_RIDC_RISK")
public class RidcRisk extends BaseEntity {

    /**
     * 风险编码
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RISK_NO
     * Nullable:  false
     */
    @Column(name = "RISK_NO")
    private String riskNo;

    /**
     * 风险名称
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RISK_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_NAME")
    private String riskName;

    /**
     * 风险描述
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RISK_DESC
     * Nullable:  true
     */
    @Column(name = "RISK_DESC")
    private String riskDesc;

    /**
     * 风险大类（一级）
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RISK_TYPE
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE")
    private String riskType;

    /**
     * 风险大类名称
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RISK_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "RISK_TYPE_NAME")
    private String riskTypeName;

    /**
     * 风险细类编码（末级）
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DETAIL_TYPE
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE")
    private String detailType;

    /**
     * 风险细类名称（末级）
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DETAIL_TYPE_NAME
     * Nullable:  true
     */
    @Column(name = "DETAIL_TYPE_NAME")
    private String detailTypeName;

    /**
     * 状态（01-草稿；02-提交；03-领导审核；04-部门领导审核;09-已关闭）
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    STATUS
     * Nullable:  true
     */
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @Column(name = "STATUS_NAME")
    private String statusName;

    /**
     * 所属单位
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    COMP_CODE
     * Nullable:  true
     */
    @Column(name = "COMP_CODE")
    private String compCode;

    /**
     * 所属单位名称
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    COMP_NAME
     * Nullable:  true
     */
    @Column(name = "COMP_NAME")
    private String compName;

    /**
     * 所属部门
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DEPT_CODE
     * Nullable:  true
     */
    @Column(name = "DEPT_CODE")
    private String deptCode;

    /**
     * 所属部门名称
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DEPT_NAME
     * Nullable:  true
     */
    @Column(name = "DEPT_NAME")
    private String deptName;

    /**
     * 年度
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    ACCT_YEAR
     * Nullable:  true
     */
    @Column(name = "ACCT_YEAR")
    private String acctYear;

    /**
     * 风险库风险编码
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    RIAA_RISK_NO
     * Nullable:  true
     */
    @Column(name = "RIAA_RISK_NO")
    private String riaaRiskNo;

    /**
     * 责任人工号
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DUTY_USER_CODE
     * Nullable:  true
     */
    @Column(name = "DUTY_USER_CODE")
    private String dutyUserCode;

    /**
     * 责任人姓名
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    DUTY_USER_NAME
     * Nullable:  true
     */
    @Column(name = "DUTY_USER_NAME")
    private String dutyUserName;

    /**
     * 维护日期
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    LAST_UPDATE_DATE
     * Nullable:  true
     */
    @Column(name = "LAST_UPDATE_DATE")
    private Date lastUpdateDate;

    /**
     * 备注
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    REMARK
     * Nullable:  true
     */
    @Column(name = "REMARK")
    private String remark;

    /**
     * 排序
     * <p>
     * Table:     T_RIDC_RISK
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    /**
     * 风险自评历史ID
     * <p>
     * Table:     T_RIRI_RISK
     * Column:    HIS_RISK_ID
     * Nullable:  true
     */
    @Column(name = "HIS_RISK_ID")
    private String hisRiskId;
    /* *管理单位编码
	 */
    @Column(name = "MANAGE_COMP_CODE")
    private String manageCompCode;
    /**
     * 管理单位名称
     */
    @Column(name = "MANAGE_COMP_NAME")
    private String manageCompName;

    private static final long serialVersionUID = 1L;
}